package com.me.mysqladmin.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.me.mysqladmin.dao.SQLCommandDAO;
import com.me.mysqladmin.entity.SQLCommand;

/**
 * SQL命令业务层
 */
@Service("sqlService")
public class SQLService {
	@Resource
	private SQLCommandDAO sqlCommandDAO;
	
	/**
	 * 执行SQL命令
	 * @param sql
	 * @return
	 * @throws Exception
	 */
	public SQLCommand executeSql(String sql) throws Exception{
		return sqlCommandDAO.executeSql(sql);
	}
}
